package com.feng.eduservice.controller.front;

import com.feng.commonutils.R;
import com.feng.eduservice.service.EduTeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/eduservice/teacherfront")
@CrossOrigin
public class TeacherFrontController {
    @Autowired
    private EduTeacherService eduTeacherService;
    //1.分页查询讲师
    @PostMapping("getTacherFrontList/{page}/{limit}")
    public R getTeacherList(@PathVariable long page,@PathVariable long limit){

        return eduTeacherService.getTeacherList(page,limit);
    }
    @GetMapping("getTeacherFrontInfo/{teacherId}")
    public R getTeacherFrontInfo(@PathVariable String teacherId){
        return eduTeacherService.getTeacherFrontInfo(teacherId);
    }
}
